<?php if(!defined('ROOT_PATH')) exit('Access Denied');?><!--  文章article   -->
<?php if(is_array($articlesdata)) foreach($articlesdata AS $vlaue) { ?>
<div class="article">
      <div class="title">
        <h2><?php echo $vlaue["title"];?></h2>
        <div class="xtit">
          <div class="artdate"><img src="<?php echo APP;?>themes/default/images/clock_icon.gif" alt="time" /><?php echo $vlaue["time"];?></div>
          <div class="pv"><img src="<?php echo APP;?>themes/default/images/pointer.png" /><?php echo $vlaue["hits"];?></div>
          <div class="comment"><img src="<?php echo APP;?>themes/default/images/comment_icon.gif" alt="comment" /> <a href="#respond" title="comment"><?php echo $vlaue["commentcount"];?> Comment</a> </div>
          <div class="rss"><a href="<?php echo APP;?>index.php/Index/Feed"><img src="<?php echo APP;?>themes/default/images/feed_icon.gif" /></a></div>
        </div>
      </div>
      <div class="artcon">
      <?php echo $vlaue["content"];?>
      </div>
    </div>
<?php } ?>

         <?php if($page["total_count"]>0) { ?><!--分页开始-->
            <ul class="topage">
              <div>
                <table width="100%" border="0" cellpadding="5" cellspacing="0">
                  <tr>
                    <td valign="bottom" align="left" nowrap="true" style="width:40%;">总记录: <?php echo $page["total_count"];?>  页码:<?php echo $page["current_page"];?>/<?php echo $page["total_page"];?>  每页：<?php echo $page["page_size"];?></td>
                    <td valign="bottom" align="right" nowrap="true" class="" style="width:60%;">
                    <?php if($page["current_page"] != $page["first_page"]) { ?>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Articles/Main/p/<?php echo $page["first_page"];?>','#content');return false;">首页</a>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Articles/Main/p/<?php echo $page["prev_page"];?>','#content');return false;">上一页</a><?php } ?>
                    <?php if(is_array($page["all_pages"])) foreach($page["all_pages"] AS $vlaue) { ?>
                    <?php if($vlaue != $page["current_page"]) { ?>
                    <a style="margin-right:5px;font-weight:Bold;color:black;" href="" onclick="ajaxLoad('<?php echo APP;?>index.php/Articles/Main/p/<?php echo $vlaue;?>','#content');return false;"><?php echo $vlaue;?></a>
                    <?php } else { ?>
                    <span style="margin-right:5px;font-weight:Bold; color:#0CF;"><?php echo $vlaue;?></span>
                    <?php } ?>
                    <?php } ?>

                    <?php if($page["current_page"] != $page["last_page"]) { ?>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Articles/Main/p/<?php echo $page["next_page"];?>','#content');return false;">下一页</a>
                    <a disabled="true" style="margin-right:5px;" onclick="ajaxLoad('<?php echo APP;?>index.php/Articles/Main/p/<?php echo $page["last_page"];?>','#content');return false;">尾页</a></td>
                    <?php } ?>
                   
                   
                  </tr>
                </table>
              </div>
            </ul>
         <?php } ?><!--分页结束-->